(component
  (core module $main (;0;)
    (type (;0;) (func))
    (type (;1;) (func))
    (type (;2;) (func))
    (type (;3;) (func))
    (table (;0;) 3 funcref)
    (memory (;0;) 17)
    (tag (;0;) (type 1))
    (tag (;1;) (type 2))
    (tag (;2;) (type 3))
    (global (;0;) (mut i32) i32.const 1048576)
    (global (;1;) (mut i32) i32.const 1048576)
    (global (;2;) (mut i32) i32.const 0)
    (global (;3;) i32 i32.const 1048584)
    (global (;4;) i32 i32.const 2)
    (global (;5;) i32 i32.const 1048584)
    (global (;6;) i32 i32.const 2)
    (global (;7;) (mut i32) i32.const 2)
    (global (;8;) (mut i32) i32.const 1048592)
    (global (;9;) (mut i32) i32.const 1114112)
    (export "__stack_pointer" (global 0))
    (export "__stack_high" (global 1))
    (export "__stack_low" (global 2))
    (export "bar:memory_base" (global 3))
    (export "bar:table_base" (global 4))
    (export "foo:memory_base" (global 5))
    (export "foo:table_base" (global 6))
    (export "foo:bar" (global 7))
    (export "__heap_base" (global 8))
    (export "__heap_end" (global 9))
    (export "bar" (func 0))
    (export "tag2" (tag 0))
    (export "tag3" (tag 1))
    (export "tag1" (tag 2))
    (export "__indirect_function_table" (table 0))
    (export "memory" (memory 0))
    (func (;0;) (type 0)
      i32.const 2
      call_indirect (type 0)
    )
    (@producers
      (processed-by "wit-component" "$CARGO_PKG_VERSION")
    )
  )
  (core module $bar (;1;)
    (@dylink.0)
    (type (;0;) (func))
    (import "env" "tag2" (tag (;0;) (type 0)))
    (import "env" "tag3" (tag (;1;) (type 0)))
    (export "bar" (func $bar))
    (func $bar (;0;) (type 0)
      unreachable
    )
  )
  (core module $foo (;2;)
    (@dylink.0
      (needed "bar")
    )
    (type (;0;) (func))
    (import "env" "tag1" (tag (;0;) (type 0)))
    (import "env" "tag2" (tag (;1;) (type 0)))
    (import "GOT.func" "bar" (global (;0;) (mut i32)))
    (export "run" (func 0))
    (func (;0;) (type 0)
      unreachable
    )
  )
  (core module $__init (;3;)
    (type (;0;) (func))
    (type (;1;) (func (param i32)))
    (type (;2;) (func))
    (import "env" "memory" (memory (;0;) 0))
    (import "env" "__indirect_function_table" (table (;0;) 0 funcref))
    (import "bar" "bar" (func (;0;) (type 2)))
    (start 1)
    (elem (;0;) (i32.const 1) func)
    (elem (;1;) (i32.const 2) func 0)
    (func (;1;) (type 0))
    (data (;0;) (i32.const 1048576) "\00\00\00\00\00\00\10\00")
    (@producers
      (processed-by "wit-component" "$CARGO_PKG_VERSION")
    )
  )
  (core instance $main (;0;) (instantiate $main))
  (alias core export $main "memory" (core memory $memory (;0;)))
  (alias core export $main "tag2" (core tag $tag2 (;0;)))
  (alias core export $main "tag3" (core tag $tag3 (;1;)))
  (core instance $env (;1;)
    (export "tag2" (tag 0))
    (export "tag3" (tag 1))
  )
  (core instance $bar (;2;) (instantiate $bar
      (with "env" (instance $env))
    )
  )
  (alias core export $main "tag1" (core tag $tag1 (;2;)))
  (core instance $"#core-instance3 env" (@name "env") (;3;)
    (export "tag1" (tag 2))
    (export "tag2" (tag 0))
  )
  (alias core export $main "foo:bar" (core global $foo:bar (;0;)))
  (core instance $GOT.func (;4;)
    (export "bar" (global $foo:bar))
  )
  (core instance $foo (;5;) (instantiate $foo
      (with "env" (instance $"#core-instance3 env"))
      (with "GOT.func" (instance $GOT.func))
    )
  )
  (core instance $__init (;6;) (instantiate $__init
      (with "env" (instance $main))
      (with "bar" (instance $bar))
    )
  )
  (type (;0;) (func))
  (alias core export $foo "run" (core func $run (;0;)))
  (func $run (;0;) (type 0) (canon lift (core func $run)))
  (export $"#func1 run" (@name "run") (;1;) "run" (func $run))
  (@producers
    (processed-by "wit-component" "$CARGO_PKG_VERSION")
  )
)
